package org.example.controller;

import org.example.utils.MailClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class MailSendController {

    @Autowired
    private MailClient mailClient;

    @GetMapping("/test")
    public void test(){
        System.out.println(123);
        mailClient.sendMail("1240301665@qq.com","测试","芜湖邮件来喽！");
    }

}
